package com.example.test.agent.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value = "添加用户信息数据传输模型")
public class SaveUserDTO implements Serializable {

    @ApiModelProperty(value = "用户名")
    @NotNull(message = "不能为空")
    private String userName;

    @ApiModelProperty(value = "账号")
    @NotNull(message = "不能为空")
    private String userCode;

    @ApiModelProperty(value = "密码")
    @NotNull(message = "不能为空")
    private String userPassword;

    @ApiModelProperty(value = "电话号码")
    @NotNull(message = "不能为空")
    private String phone;



}
